import io.minio.errors.*;

import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;

/**
 * @Question TestMinio
 * @Date 2023/4/17 14:10
 * @Solution
 */
public class TestMinio {
    public static void main(String[] args) throws ServerException, InsufficientDataException, ErrorResponseException, IOException, NoSuchAlgorithmException, InvalidKeyException, InvalidResponseException, XmlParserException, InternalException {
        MinioUtil util = new MinioUtil();
        File file=new File("C:/Users/Larsourace/Pictures/Screenshots/2.png");
        FileInputStream in=new FileInputStream(file);
        util.put("2.png",in,file.length());
    }
}
